-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AP_Camera: Load CAMERA_INFORMATION and VIDEO_STREAM_INFORMATION from Lua #27794
AP_Camera: Load CAMERA_INFORMATION and VIDEO_STREAM_INFORMATION from Lua #27794
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
definitely needs to be disabled in minimize include and build_options/extract_featues files added
If scripting has to set it in anycase why not use scripting for the whole thing? You can receive and send MAVLink messages from Lua. |
5164dbd
to
49019d3
Compare
Two reasons:
|
Done. |
e24c7df
to
4513acf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs squash and library split
What do you mean?
|
There is a way to do this, I actually did exactly that and was about to open a PR for it, but I also was thinking about redoing it to something like your approach here. It's easy enough to intercept a So, I think there are some advantages to your approach. My lua script for reference |
only one commit per library is allowed in final pr squash to one commit then run Tools/gittools/git-subsystems-split script and push back |
This is definitely not true and IMO reduces clarity. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only one commit per library is allowed in final pr
That's not the case. But there are too many commits in here.
This is a problem, 'though, @nexton-winjeel
I usually also squash the changes to build_options.py and extract_features.py into a single commit (and often just omit the fact it touches extract_features.py) - there are two examples of that in the current commit list.
These could possibly also be squashed:
... they can be separated, but it's not particularly useful (and this, I think, the sort of thing that Henry might be kind of objecting to).
4513acf
to
3b18f04
Compare
@Hwurzburg, @peterbarker: Squashed. |
3b18f04
to
96b40db
Compare
@peterbarker: Is |
Its a new test - I haven't seen it flap |
96b40db
to
4c9c1c2
Compare
I can't trigger tests, so I've rebased on |
userdata mavlink_camera_information_t field model_name'array 32 uint8_t'skip_check read write | ||
userdata mavlink_camera_information_t field lens_id uint8_t'skip_check read write | ||
userdata mavlink_camera_information_t field cam_definition_uri'array 140 uint8_t'skip_check read write | ||
userdata mavlink_camera_information_t field gimbal_device_id uint8_t'skip_check read write |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should bring in the XML for camera_id
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tridge: Is this PR blocked on getting the MAVLink XML changes for camera_id
brought in?
4c9c1c2
to
8893265
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Depends should match the AP_Camera
one.
libraries/AP_Scripting/examples/set_VIDEO_STREAM_INFORMATION.lua
Outdated
Show resolved
Hide resolved
Also the |
5480371
to
3424bfc
Compare
@IamPete1: I've updated the Lua bindings for the new structs and methods to depend on |
Rebased on |
It's still big, but if the ifdefs work now, it should not be a problem. |
Running locally, I get the following: This branch,
Deltas between disabled and
|
then we definitely need a change to developer WIKI instructions... @peterbarker ?: |
@Hwurzburg, I think the requirement is that individual commits should not affect more than one subsystem but multiple commits affecting a single subsystem is OK. The git-subsystems-split script is probably meant to divide up a single commit but not to consolidate commits. |
3424bfc
to
d5b0a7c
Compare
This PR allows us to populate the
CAMERA_INFORMATION
andVIDEO_STREAM_INFORMATION
MAVLink messages from Lua scripts.Sending these messages allows a GCS to auto-configure the video stream to receive video from the payload.
Replaces #27594.